import { people } from "../data";
const chemists = people.filter((person) => person.profession === "化学家");
const listItems = chemists.map((person) => (
  <li key={person.id}>
    {" "}
    <p>
      <b>{person.name}:</b>
      {" " + person.profession + " "}因{person.accomplishment}而闻名世界
    </p>{" "}
  </li>
));

export default function List() {
  return <ul>{listItems}</ul>;
}
